home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-09-14 | 2.1 KB | 50 lines | [TEXT/MPS ] |
- INCLUDE 'traps.a'
- EXPORT TRY:CODE
- EXPORT CLEAR_JUMP_TRACE_BIT:CODE
-
-
-
- ;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- ;• •
- ;• Identifier: TRY •
- ;• ----------- •
- ;• •
- ;• Description •
- ;• ----------- •
- ;• This proc pushes the SLUDGE factor onto the stack and jumps to the •
- ;• parasite code. •
- ;• •
- ;• History •
- ;• ------- •
- ;• •
- ;• Author Date Description •
- ;• ------------------------------------------------------------------ •
- ;• Kevin McEntee 2/20/90 Original Implementation •
- ;• •
- ;• •
- ;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- TRY PROC
- Move.L D0,-(SP)
- Move.L A0,-(SP)
- Move.L 16(SP),D0
- Move.L 12(SP),A0 ; put parasite code in A0
- Move.L D0,-(SP)
- Jsr (A0)
- ;
- AddA.L #4,A7 ; eat the Sludge Factor param
- Move.L 8(SP),A0 ; ra -> A0
- Move.L A0,16(SP) ; put return address at top of stack
- Move.L (SP)+,A0 ; restore A0
- Move.L (SP)+,D0
- AddA.L #8,A7
- RTS
- ENDPROC
-
-
-
- CLEAR_JUMP_TRACE_BIT PROC
- Andi #$BFFF,SR
- RTS
- ENDPROC
- END
-